package org.cbyyx.tc.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.cbyyx.tc.model.dto.addressRequest.AddressAddRequest;
import org.cbyyx.tc.model.dto.addressRequest.AddressQueryRequest;
import org.cbyyx.tc.model.dto.addressRequest.AddressUpdateRequest;
import org.cbyyx.tc.model.entity.Address;
import org.cbyyx.tc.model.vo.addressResponse.AddressVO;

import java.util.List;

/**
* @author Administrator
* @description 针对表【addresses】的数据库操作Service
* @createDate 2025-04-21 15:40:03
*/
public interface AddressService extends IService<Address> {
    boolean addAddress(AddressAddRequest request);
    boolean updateAddress(AddressUpdateRequest request);
    boolean deleteAddress(Long id);
    AddressVO getAddress(Long id);
    List<AddressVO> listAddresses(AddressQueryRequest request);
    boolean setDefaultAddress(Long id);
    
    /**
     * 获取默认地址
     * @return 默认地址VO对象
     */
    AddressVO getDefaultAddress();
}
